bitkeeper revision 1.7.3.52 (3e1019294uiW6rByAS_Bs30dgMr6AA)
authorlynx@idefix.cl.cam.ac.uk <lynx@idefix.cl.cam.ac.uk>
Mon, 30 Dec 2002 10:00:09 +0000 (10:00 +0000)
committerlynx@idefix.cl.cam.ac.uk <lynx@idefix.cl.cam.ac.uk>
Mon, 30 Dec 2002 10:00:09 +0000 (10:00 +0000)
debug

xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c
xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c

index 927f0b1f293bbb763519d8eb43f99bad53fb7506..13aa3edd06a794f5f1205ed08b34d4ecd9f948ea 100644 (file)
@@ -184,15 +184,16 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size,
     /* add node on the list of directly mapped areas, make sure the
         * list remains sorted.
         */ 
-    //dmmap = (direct_mmap_node_t *)kmalloc(sizeof(direct_mmap_node_t), GFP_KERNEL);
     dmmap = (direct_mmap_node_t *)kmalloc(KMALLOC_SIZE, GFP_KERNEL);
     dmmap->vm_start = addr;
     dmmap->vm_end = addr + size;
        entry = find_direct(&current->mm->context.direct_list, addr);
        if(entry != &current->mm->context.direct_list){
                list_add_tail(&dmmap->list, entry);
+               printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", node->vm_start);
        } else {
        list_add(&dmmap->list, &current->mm->context.direct_list);
+               printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", node->vm_start);
        }
 
     /* and perform the mapping */
index 5b9c16681a9b25993f2bd9ff624c4ffbf3375831..88339f563bdc0049858738db73435a2b60270354 100644 (file)
@@ -77,7 +77,10 @@ struct list_head *find_direct(struct list_head *list, unsigned long addr)
     for ( curr = direct_list->next; curr != direct_list; curr = curr->next )
     {
         node = list_entry(curr, direct_mmap_node_t, list);
-        if( node->vm_start >= addr ) break;
+        if( node->vm_start >= addr ){
+                       printk(KERN_ALERT "bd240 debug: find_direct: hit %lx\n", node->vm_start); 
+                       break;
+               }
     }
 
     return curr;